fix(plugin): missing project mandate is optional, not a broken path#18
Merged
Conversation
…able path
On the plugin install path Claude Code never creates a `.truecast/` instance
dir, so the agent body's "your job lives in .truecast/.../mandate.md — if it
doesn't exist, write it" dangled: the path was absent AND read-only personas
(Read/Grep/WebSearch/WebFetch — no Write) cannot create it, so they bailed to
"working from craft principles" (reported as the .truecast-doesn't-exist bug).
Reframe the plugin-transport job section: treat a missing brief as normal, tell
the persona to ASK the user what they need (which a read-only agent can do),
and point to the `truecast` CLI for a standing, persisted mandate. Skill paths
(${CLAUDE_PLUGIN_ROOT}/core) were already correct and are unchanged; the
subagent transport is byte-identical (golden green). Regenerated all 11 plugin
bodies; `claude plugin validate --strict` passes.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bug
On the plugin install path, Claude Code never creates a
.truecast/instance dir in the repo. But the generated agent body said "your job lives in.truecast/agents/<name>/instance/mandate.md— if it doesn't exist, write it." Two failures stacked:truecast installran), andRead, Grep, WebSearch, WebFetch— noWrite), so they cannot create the mandate they're told to.Result: the agent reads nothing, can't create it, and bails to "working from craft principles" — the ".truecast doesn't exist" report.
The fix
Reframe the plugin-transport "Your job" section so a missing brief is optional, not an error: the persona asks the user what they need (which a read-only agent can do) and proceeds from its craft, and points to the
truecastCLI for a standing, persisted mandate.Rejected alternatives: scaffolding
.truecast/via a plugin SessionStart hook (unsandboxed code execution — the supply-chain risk we avoid) and granting Write (breaks least-privilege).Scope / safety
${CLAUDE_PLUGIN_ROOT}/core) were already correct — unchanged.claude plugin validate --strictpasses;truecast publish --checkclean.Test plan
🤖 Generated with Claude Code